﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

	<head>
        <meta charset="UTF-8">
        <title>栏目管理</title>

        <link rel="stylesheet" href="../../static/plugins/layui/css/layui.css" media="all" th:href="@{/plugins/layui/css/layui.css}"/>
        <link rel="stylesheet" href="../../static/css/global.css" media="all" th:href="@{/css/global.css}">
        <link rel="stylesheet" href="../../static/plugins/font-awesome/css/font-awesome.min.css" th:href="@{/plugins/font-awesome/css/font-awesome.min.css}">
        <link rel="stylesheet" href="../../static/css/table.css" th:href="@{/css/table.css}"/>
        <link rel="stylesheet" href="../../static/css/myglobal.css" th:href="@{/css/myglobal.css}">
        <!--<link rel="stylesheet" href="../static/css/btable.css" th:href="@{css/btable.css}"/>-->

        <style type="text/css">
            .layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select
            {
                display: inline;
            }
        </style>
	</head>

    <blockquote class="layui-elem-quote">
        <a onclick="window.location.reload();" style='cursor:pointer;display: inline-block'>
            <img src="../../static/images/refresh.png" height="20" th:src="@{/images/refresh.png}"/>
        </a> <span style="display: inline-block;margin:5px">栏目管理</span>
    </blockquote>
    <div class="mycontent">

        <div class="layui-form-item margin-left" style="margin-bottom:5px;">
            <a href="addnav.html"  th:href="@{/Admin/navigation/addnav}" class="layui-btn layui-btn-small"><i class="fa fa-plus" aria-hidden="true"></i> 添加</a>
        </div>

        <fieldset class="layui-elem-field" >
            <legend>资源列表</legend>
        <div class="layui-field-box">



                <table class="layui-table admin-table" >
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="20%">资源名称</th>
                    <th width="10%">资源映射</th>
                    <th width="10%">资源类型</th>
                    <th width="10%">操作</th>
                </tr>
                </thead>
                <tbody>

                <!--/*@thymesVar id="bean" type="com.example.demo.navigation.bean.NavBean"*/-->
                <tr th:each="bean,beanStat:${navlist}" th:object="${bean}">
                    <td th:text="${beanStat.count}"></td>
                    <td th:text="${bean.title}"></td>
                    <td th:text="${bean.href}"></td>
                    <td th:switch="${bean.type}">
                        <p th:case="0">一级菜单</p>
                        <p th:case="1">二级菜单</p>
                        <p th:case="2">三级菜单</p>
                    </td>
                    <td>
                        <!--<a class="layui-btn layui-btn-mini">展示中</a>-->
                        <a class="layui-btn layui-btn-mini" th:href="@{/Admin/navigation/editnav/{id}(id=${bean.id})}">编辑</a>
                        <a class="layui-btn layui-btn-mini layui-btn-danger" th:href="@{/Admin/navigation/delnav/{id}(id=${bean.id})}">删除</a>
                    </td>

                </tr>

                </tbody>
            </table>

            <div data-type="paged" class="btable-paged">
                <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-7">
                    <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>1</em></span>
                    <a href="javascript:;" data-page="2">2</a>
                    <a href="javascript:;" data-page="3">3</a>
                    <a href="javascript:;" data-page="4">4</a>
                    <a href="javascript:;" data-page="5">5</a>
                    <span>…</span>
                    <a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="19">末页</a>
                    <a href="javascript:;" class="layui-laypage-next" data-page="2">下一页</a>
                    <span class="layui-laypage-total">到第
								<input type="number" min="1" onkeyup="this.value=this.value.replace(/\D/, '');" value="1" class="layui-laypage-skip"> 页
								<button type="button" class="layui-laypage-btn">确定</button>
							</span>
                </div>
            </div>

        </div>
        </fieldset>
    </div>








	</body>
    <script type="text/javascript" src="plugins/layui/layui.js" th:src="@{/plugins/layui/layui.js}"></script>
    <script>
        layui.use('form', function(){
            var form = layui.form();
            form.on('submit(del)',function (data) {
                alert("ffds");
            })
        });
    </script>


</html>